import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-04-08
 * Time:10:56
 */
public class TestDemo {
    public static void main(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        MyLinkedList myLinkedList2=new MyLinkedList();
        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(4);
        myLinkedList2.addLast(1);
        myLinkedList2.addLast(3);
        myLinkedList2.addLast(4);
        ListNode ret = myLinkedList.mergeTwoLists(myLinkedList.head,myLinkedList2.head);
        myLinkedList.print2(ret);
    }
}
